All Questions
1 question
6votes
4answers
765views
How to convert the following node evaluation procedure to a non recursive solution?
I have the following recursive method. It evaluates a node (that represent a logical expression), using deep first search traversal : EvaluateNode(Node node) { bool result; switch(node.Type) ...